include $(top_srcdir)/common.mk

AM_CPPFLAGS += -I$(top_srcdir)/common \
	       -I$(top_srcdir)/lib \
	       -I$(top_srcdir)/api \
	       -I./

bin_PROGRAMS = qp qptask

qp_SOURCES = qp.c qp.handler.c qp.handler.h 

qp_LDADD = ./subcmd/.libs/libsubcmd.a  \
	../api/.libs/libqpapi.a ../lib/.libs/libqpbase.a ../common/.libs/libtools.a \
	-lm -lpthread -lnsl -lyaml

if ENABLE_TIRPC
qp_LDADD += -ltirpc
endif

qptask_SOURCES = qptask.c

qptask_LDADD = ../api/.libs/libqpapi.a ../lib/.libs/libqpbase.a ../common/.libs/libtools.a \
	-lm -lpthread -lnsl -lyaml

if ENABLE_TIRPC
qptask_LDADD += -ltirpc
endif

